import request from "@/utils/request";

/**
 * 修改用户信息
 * @param params
 * @returns
 */
export const apiUserEdit = (params) => {
  return request.post("/user/edit", params);
};

/**
 * 修改密码
 * @param params
 * @returns
 */
export const apiUpdatePassword = (params) => {
  return request.post("/user/updatePassword", params);
};

/**
 * 注册
 * @param params
 * @returns
 */
export const apiUserRegister = (params) => {
  return request.post("/user/register", params);
};

/**
 * 读取人脸核身base64
 * @param params
 * @returns
 */
export const apiReadImageBase64 = () => {
  return request.get(`/user/readImageBase64`);
};
